//
//  MyNodeListTableViewCell.swift
//  AreaChainblock
//
//  Created by 赵佟越 on 2018/11/2.
//  Copyright © 2018年 zhaotongyue. All rights reserved.
//

import UIKit

class MyNodeListTableViewCell: UITableViewCell {

    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var rightLabel: UILabel!
    @IBOutlet weak var titleLbottomabel: UILabel!
    
    private var myModel:productModel? = productModel()
    var isFrom :String!
    var model :productModel{
        set {
            myModel = newValue;
            titleLabel.text = myModel?.nick_name
            titleLbottomabel.sizeToFit()
            titleLbottomabel.text = myModel?.create_time
            
            if newValue.value != nil{
                myModel?.value =
                    String(format: "%.3f", Float(newValue.value as String!)!)
            }
            rightLabel.text = String(format:"+ %@",(myModel?.value!)!)
        }
        get
        {
            return (self.myModel)!
        }
    }
    

    override func awakeFromNib() {
        super.awakeFromNib()
        titleLabel.textColor = UIColor.white
        titleLbottomabel.textColor = UIColor.white
        rightLabel.textAlignment = .right
        rightLabel.textColor = UIColor.white
        // Initialization code
    }
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
